#pragma once
#include "bitmapclass.h"



namespace frost
{
	namespace grafik
	{
		/** \brief Klass f&ouml;r visning utav animerade bitmap bilder
		*
		* &Auml;rver fr&aring;n BitmapClass
		*/
		class AnimatedBitmapClass :
			public BitmapClass
		{
		public:
			AnimatedBitmapClass(void);
			~AnimatedBitmapClass(void);

			bool Render(ID3D11DeviceContext*);
			void SetNumberOfFrames(int);
			void SetDelayInFrames(int);
		private:
			bool UpdateBuffers(ID3D11DeviceContext*, int, int);
			int frame_nr, delay, numberOfFrames, delayInFrames;
			float leftborder, rightborder;
		};
	}
}